<me:UIMAPCON x:Class="WPFExcelReport.TMAPCON"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:IntexBL="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    Loaded="Window_Loaded"
                    x:Name="TV"
     >
    <me:UIMAPCON.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:BYTE2TR  x:Key="b2s"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIMAPCON.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition  Width="1*" /> 
        </Grid.ColumnDefinitions>
        <TextBlock Text="{Binding INFO}" Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" Visibility="{Binding IsBusy,ElementName=TV,Converter={StaticResource bv}}"/>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Margin="0,0,-0.2,0">
            <WrapPanel >
                 <ex:TXT72 MaxLength="2" Text="{Binding VAR,ElementName=TV}" CharacterCasing="Upper" Width="30"/> 
                <Button Margin="15,0,0,0" Content="{Binding Source={Localization:Translate Word=Convert}}" Click="SaveCommand"></Button>
            </WrapPanel>
                </StackPanel>
        <StackPanel Grid.Row="1">
            <StackPanel>
                <TextBlock>MCKONSTLST1</TextBlock>
                <TextBlock TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3"  Text="{Binding Path=KONSTLST1,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
                <TextBlock>MCKONSTLST1</TextBlock>
                <TextBlock TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3"  Text="{Binding Path=KONSTLST1,Source={StaticResource vwMaster}}" VerticalAlignment="Center"  />

            </StackPanel>
            <TextBlock>MCKONSTLST2</TextBlock>
            <TextBlock  TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=KONSTLST2,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MCKONSTLST2</TextBlock>
            <TextBlock  TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=KONSTLST2,Source={StaticResource vwMaster}}" VerticalAlignment="Center"  />
            <TextBlock>MCZZUSTAB1</TextBlock>
            <TextBlock TextWrapping="Wrap"   HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ZZUSTAB1,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MCZZUSTAB2</TextBlock>
            <TextBlock TextWrapping="Wrap"   HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ZZUSTAB2,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MCZZUSTAB3</TextBlock>
            <TextBlock  TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ZZUSTAB3,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />

        </StackPanel>
    </Grid>
</me:UIMAPCON> 
